﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.OleDb;

namespace Emergency.Controls
{
    public partial class FrmNewPlanResource : DevExpress.XtraEditors.XtraForm
    {
        public FrmNewPlanResource()
        {
            InitializeComponent();
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            FromManufactue frmManufacture = new FromManufactue();
            this.Close();
            frmManufacture.ShowDialog();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmNewPlanResource_Load(object sender, EventArgs e)
        {
            string connString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\datasource.accdb";
            OleDbDataAdapter oda = new OleDbDataAdapter("select * from ExpandModel", connString);
            DataSet ds = new DataSet();
            oda.Fill(ds);
            gridControl2.DataSource = ds.Tables[0];
        }
    }
}